<!--
  **********
  复选框组、数据双向绑定组件
  **********
-->
<div class="all-checked-wrap" *ngIf="isAllCheck">
  <label
    nz-checkbox
    [nzDisabled]="disabled"
    [(ngModel)]="allChecked"
    (ngModelChange)="updateAllChecked()"
    [nzIndeterminate]="indeterminate"
  >
    <!-- {{ allChecked ? '全不选' : '全选' }} -->
    全选
  </label>

  <label
    *ngIf="!allChecked || indeterminate"
    nz-checkbox
    [(ngModel)]="notAllChecked"
    [nzDisabled]="notAllChecked || disabled"
    (ngModelChange)="updateNotAllChecked()">
    全不选
  </label>
</div>

<nz-checkbox-group
  [nzDisabled]="disabled"
  [(ngModel)]="checkOptions"
  (ngModelChange)="updateSingleChecked($event)"
></nz-checkbox-group>